package com.ruoyi.food.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.food.mapper.TActOrderMapper;
import com.ruoyi.food.object.TActOrder;
import com.ruoyi.food.service.TActOrderService;

@Service
public class TActOrderServiceImpl extends ServiceImpl<TActOrderMapper, TActOrder> implements TActOrderService {

	@Autowired
	private TActOrderMapper tActOrderMapper;
	@Override
	public List<TActOrder> findTActOrder() {
		// TODO Auto-generated method stub
		List<TActOrder> tActOrders=tActOrderMapper.selectAllTActOrder();
		
		return tActOrders;
	}
	@Override
	public List<TActOrder> findTActOrderByCon(TActOrder tActOrder) {
		// TODO Auto-generated method stub
		List<TActOrder> tActOrders=tActOrderMapper.selectTActOrderByCon(tActOrder);
		return tActOrders;
	}
	@Override
	public List<TActOrder> findTActOrderByClientId(long clientId) {
		// TODO Auto-generated method stub
		return tActOrderMapper.selecTActOrderByClientId(clientId);
	}
	@Override
	public TActOrder findTActOrderByMOrderId(String mOrderId) {
		// TODO Auto-generated method stub
		return tActOrderMapper.selecTActOrderByMOrderId(mOrderId);
	}
	@Override
	public List<TActOrder> findTActOrderByMobile(String mobile) {
		// TODO Auto-generated method stub
		return tActOrderMapper.selecTActOrderByMobile(mobile);
	}
	@Override
	public List<TActOrder> findTActOrderByActId(List<Long> actIds, TActOrder tActOrder) {
		// TODO Auto-generated method stub
		return tActOrderMapper.selecTActOrderByActId(actIds, tActOrder);
	}

}
